<?
session_start();
$navi_page_id = "index";
require("header.php");
?>
<script type="text/javascript" src="../webkit/utils/jquery.js"></script>
<link href="css/index.css" type="text/css" rel="stylesheet" />
</head>
<body style="margin:0px;background:white;">
	<? require("top.php"); ?>
	<div style="width:100%;background:#efefef;border-top:#ddd 5px solid; border-bottom:#ddd 5px solid">
	<table width='900' height='430' bgcolor=white align=center>
		<tr>
		<td width="50%" style='padding:23px 10px 0px 30px' valign=top nowrap>

			<b style="color:green; font-size:16px">长沙全民闸蟹季，<font color="#ff6600">货到付款</font>、<font color="#ff6600">同城配送</font>、<font color="#ff6600">包退包换</font>！</b>
			<div class="roll-news">
				<div class="roll-news-image">
					<img src="photo/zhaxie_2s.jpg">
					<img src="photo/zhaxie_4s.jpg" style="display:none">
					<img src="photo/zhaxie_1s.jpg" style="display:none">
					<img src="photo/zhaxie_3s.jpg" style="display:none">
				</div>
				<div class="roll-news-index">
					<ul>
						<li class="roll-news-index-hover">1</li>
						<li>2</li>
						<li>3</li>
						<li>4</li>
					</ul>
				</div>
				
				<div class="roll-news-title">
					<a href="#" onclick="return false">江苏红膏闸蟹，味美极鲜，长沙全城热购中！</a>
					<a href="#" onclick="return false" style="display:none" style="color:white">鲜活包装，直达家中！长沙市内货到付款</a>
					<a href="#" onclick="return false" style="display:none" style="color:white">快捷的定购、简单的做法，随时在家中享受美食！</a>
					<a href="#" onclick="return false" style="display:none">承诺：无蟹黄包退换，假一赔十，实体店保障</a>
				</div>
			</div>

		</td>
		<td width="50%" style='padding:20px 10px 0px 40px; font-size:20px; font-family:黑体' valign=top align=left>
		<div style="font-size:15px; font-family:宋体;text-align:left; width:320px; line-height:23px">【选择产品】<br>
		<font color=gray id="product_select">
		单　价：<font color="red" style="text-decoration:underline" id="price">15</font> 元/只<br>
		个　头：<a href="#" class="ps_select" title="2两" group="type">小</a>　<a href="#" class="ps" title="2.5两" group="type">中</a>　<a href="#" class="ps" title="3两" group="type">大</a><br>
		只　数：<a href="#" class="ps_select" group="count">6</a>　<a href="#" class="ps" group="count">8</a>　<a href="#" class="ps" group="count">10</a>　<a href="" class="ps" group="count">12</a>　<a href="" class="ps" group="count">16</a><br>
		包　装：<a href="#" class="ps_select" title="免费" group="box">标准</a>　<a href="#" class="ps" title="需加收8元" group="box">礼品袋</a><br>
		总　计：<font color=red style="font-family:arial;font-size:23px" id="total">60</font> 元<br>
		</font>
		</div>
		<br>
		<div style="font-size:15px; font-family:宋体;text-align:left; width:320px; line-height:23px">【配送地址】<br>
		<font color=gray>
		姓　名：<input type="text" size=20 id="truename" value="<?echo $_SESSION['truename']?>"><br>
		手　机：<input type="text" size=20 id="mobile" value="<?echo $_SESSION['mobile']?>"><?if(empty($_SESSION['user_id'])) {?> (<a href='login.php' class="gray" style="color:#ff3300; font-size:12px">我是老顾客了</a>)<?}?> <br>
		区　域：<select  id="area"><option value='长沙市'>长沙市</option><option value='芙蓉区'>芙蓉区</option><option value='天心区'>天心区</option><option value='雨花区'>雨花区</option><option value='岳麓区'>岳麓区</option><option value='开福区'>开福区</option><option value='望城区'>望城区</option></select><br>
		地　址：<input type="text" size=35 id="address" value="<?echo $_SESSION['address']?>"><br>
		备　注：<input type="text" size=35 id="content"><br><br>
		<input type="hidden" id="order_source" value="<?if(isset($_GET['os'])){echo $_GET['os'];}else{echo "1";}?>">
		<input type="hidden" id="product" value="闸蟹">
		<script> $("#area").val("<?echo $_SESSION['area']?>") </script>
		<span id="btn_post"><img src="images/buy_button.jpg" style="cursor:hand"></span><span style="color:green;display:none" id="post_waiting"><img src="images/loading.gif" style="vertical-align:middle"> 定单正在处理中，请稍候...</span><br>
		<font style="font-size:12px">(温馨提示：首次购买会自动注册用户，下次<a href='' class="gray" style="font-size:12px">凭手机号登录</a>)</font>
		</font>
		</div>
		</td>
		</tr>
	</table>
	<table width='900' height='200' bgcolor=white align=center>
		<tr>
		<td valign=top colspan=2 style="padding:15px 0px 15px 35px; border-top:#ddd 2px dashed"><b style="color:green; font-size:16px">产品特色、服务保障</b>	
		</td>
		</tr>
		<tr>
			<td align=center colspan=2 >
				<br>
				<img src="images/special.jpg">
				<br><br>

			</td>
		</tr>
		<tr>
			<td align=center valign=top>
				<img src="images/weixin_logo_s.jpg" width=140>
				<br><br>
			</td>
			<td align=center valign=top>
				<div style="width:138px; height:126px; border:#ddd 3px dashed;">
				<img src="images/baidu_logo.gif"><br><br>
				百度搜索关键字：<br>
				<font color="#ff6600">巨蟹座<Br>长沙闸蟹、长沙海鲜</font>
				<div>
				<br><br>
			</td>
		</tr>
	</table>

	</div>
	<? require("bottom.php"); ?>
	<script>
	var box = "标准";
	var total = "60";
	<?
	if( isset($_GET['sid']) ) { // 从首页传入sid的参数处理，要自动选中产品属性
		$sid = $_GET['sid'];
		$type_array = array('1'=>'小','2'=>'中','3'=>'大');
		$count_array = array('1'=>'10','2'=>'8','3'=>'6');
		$price_array = array('1'=>'15','2'=>'20','3'=>'25');
	?>
	var type = "<?echo $type_array[$sid]?>";
	var count = "<?echo $count_array[$sid]?>";
	var price = "<?echo $price_array[$sid]?>";	
	<?
	} else { // 默认的产品参数
	?>
	var type = "小";
	var count = "6";
	var price = "15";
	<?}?>
	</script>
	<script src="js/slide_photo.js"></script>
	<script src="js/post_order.js"></script>
	<script> 
	$(document).ready(function(){  // 页面加载做产品属性自动选择处理; 2014/11/19
		$("a[group='type']").each(function() {
			if($(this).html() == type) {
				change_product_select($(this)); 
			}
		});
	});
	</script>
</body>
</html>